import os,json,time

from pydub import AudioSegment
from pydub.silence import split_on_silence

class Worker(object):
    def __init__(self):
        print("coze.worker.__init__")
        self.cmd_run = """
        curl 'https://www.coze.cn/api/workflowV2/testRun?msToken=NvwCcQdk1Xclnsu40h_tSye3FYIIdUca8qeiHfIfNM8yh4xt1FtQ7at1qHopvg8s_nJet8tFE8ojm2uyaEDCM_Neg2BIC1eHvNO14wKbjjB0Kl84bvD9GA%3D%3D&a_bogus=QfmMQ5uvdEfpvf8h5IOLfY3qV33FYMtf0SVkMDhegO5Apg39HMYX9exYA1ivJsDjLT%2FAIeSjy4hbTpcprQIyM1wf98vx%2F25DsfSkKl3pso0j53inCy8mE0iL5XsAtePQsvHlEKi8o7%2FaSYjkAnAJ5kIlO62kFobyifELt3y%3D' \
          -s -H 'accept: application/json, text/plain, */*' \
          -H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8' \
          -H 'cache-control: no-cache' \
          -H 'content-type: application/json' \
          -H 'cookie: x-jupiter-uuid=17130820855502920; i18next=zh-CN; passport_csrf_token=e00766f1352e269aebeb1ddcbb55d504; passport_csrf_token_default=e00766f1352e269aebeb1ddcbb55d504; s_v_web_id=verify_luz8ulyt_2a6vFh92_QLDj_4Rbs_Bchf_U14kkXQZFDmZ; d_ticket=b262f501f75fed699272bfe066976c271791a; odin_tt=13cfabcf0e90c32fec5edbe601cdf8f00b73fbf14a81f1cc5bb0cd4317064fc842b732294552493aa15af4466dbec3eb7fb71b7b2c234a8025fad3a9054f0195; n_mh=xhJfMqoyzu4hLdzszB_JZsUvUfP-9hke36dv5yciCwQ; passport_auth_status=c0a8d70fd202bdc62c6e0680aa4e2ea8%2C; passport_auth_status_ss=c0a8d70fd202bdc62c6e0680aa4e2ea8%2C; sid_guard=293d1a9b44c81c1b8495fdb367f96f24%7C1713082117%7C5184000%7CThu%2C+13-Jun-2024+08%3A08%3A37+GMT; uid_tt=de3fd4223d1e495dfc3e4410e2cffa70; uid_tt_ss=de3fd4223d1e495dfc3e4410e2cffa70; sid_tt=293d1a9b44c81c1b8495fdb367f96f24; sessionid=293d1a9b44c81c1b8495fdb367f96f24; sessionid_ss=293d1a9b44c81c1b8495fdb367f96f24; sid_ucp_v1=1.0.0-KGYxMDA2Y2EyODRhODBhMzJhMDRmZTFlMGY3NjczYzZhMjE1ZGVlMDMKHwi8pbDf0M1OEIWe7rAGGMeQHyAMMJT-wq4GOAJA8QcaAmhsIiAyOTNkMWE5YjQ0YzgxYzFiODQ5NWZkYjM2N2Y5NmYyNA; ssid_ucp_v1=1.0.0-KGYxMDA2Y2EyODRhODBhMzJhMDRmZTFlMGY3NjczYzZhMjE1ZGVlMDMKHwi8pbDf0M1OEIWe7rAGGMeQHyAMMJT-wq4GOAJA8QcaAmhsIiAyOTNkMWE5YjQ0YzgxYzFiODQ5NWZkYjM2N2Y5NmYyNA; store-region=cn-he; store-region-src=uid; ttwid=1%7CjrjSa0s1eDrywwvYWe9VSmlcXVCxT4YEC3rM3XP8D54%7C1713391736%7C8d2e045f96f13a11091fc36b51c03907a2da878397d44dbf102ece3d27001203; msToken=IjYuBKkvC80Y9uKNEzFL9JmjwQF0HNN6JKpcXS9Ff3XXY9cIZKE4PNDY_84OcdaSIGY5OR9plebBNT79d80eHJr3u0dsiUze2N40evyeyiAa_KzyG8hHwg==' \
          -H 'origin: https://www.coze.cn' \
          -H 'pragma: no-cache' \
          -H 'referer: https://www.coze.cn/work_flow?space_id={space_id}&workflow_id={workflow_id}' \
          -H 'sec-ch-ua: "Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"' \
          -H 'sec-ch-ua-mobile: ?0' \
          -H 'sec-ch-ua-platform: "macOS"' \
          -H 'sec-fetch-dest: empty' \
          -H 'sec-fetch-mode: cors' \
          -H 'sec-fetch-site: same-origin' \
          -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
          -H 'x-requested-with: XMLHttpRequest' \
          --data-raw '{{"workflow_id":"{workflow_id}","input":{{"input":"{input}"}},"space_id":"{space_id}"}}'
        """

        self.cmd_get = """
         curl 'https://www.coze.cn/api/workflowV2/get_process?workflow_id={workflow_id}&space_id={space_id}&execute_id={execute_id}&msToken=NvwCcQdk1Xclnsu40h_tSye3FYIIdUca8qeiHfIfNM8yh4xt1FtQ7at1qHopvg8s_nJet8tFE8ojm2uyaEDCM_Neg2BIC1eHvNO14wKbjjB0Kl84bvD9GA%3D%3D&a_bogus=E6WZM5zfDiIsDfuX5IOLfY3qVVa3YMt10SVkMDhevxVAcL39HMTT9exYA1tvmK6jLT%2FAIeSjy4hbTpcprQIyM1wf98vx%2F25DsfSkKl3pso0j53inCy8mE0iL5XsAtePQsvHlEKi8o7%2FaSYjkAnAJ5kIlO62kFobyifELtWf%3D' \
          -s -H 'accept: application/json, text/plain, */*' \
          -H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8' \
          -H 'cache-control: no-cache' \
          -H 'cookie: x-jupiter-uuid=17130820855502920; i18next=zh-CN; passport_csrf_token=e00766f1352e269aebeb1ddcbb55d504; passport_csrf_token_default=e00766f1352e269aebeb1ddcbb55d504; s_v_web_id=verify_luz8ulyt_2a6vFh92_QLDj_4Rbs_Bchf_U14kkXQZFDmZ; d_ticket=b262f501f75fed699272bfe066976c271791a; odin_tt=13cfabcf0e90c32fec5edbe601cdf8f00b73fbf14a81f1cc5bb0cd4317064fc842b732294552493aa15af4466dbec3eb7fb71b7b2c234a8025fad3a9054f0195; n_mh=xhJfMqoyzu4hLdzszB_JZsUvUfP-9hke36dv5yciCwQ; passport_auth_status=c0a8d70fd202bdc62c6e0680aa4e2ea8%2C; passport_auth_status_ss=c0a8d70fd202bdc62c6e0680aa4e2ea8%2C; sid_guard=293d1a9b44c81c1b8495fdb367f96f24%7C1713082117%7C5184000%7CThu%2C+13-Jun-2024+08%3A08%3A37+GMT; uid_tt=de3fd4223d1e495dfc3e4410e2cffa70; uid_tt_ss=de3fd4223d1e495dfc3e4410e2cffa70; sid_tt=293d1a9b44c81c1b8495fdb367f96f24; sessionid=293d1a9b44c81c1b8495fdb367f96f24; sessionid_ss=293d1a9b44c81c1b8495fdb367f96f24; sid_ucp_v1=1.0.0-KGYxMDA2Y2EyODRhODBhMzJhMDRmZTFlMGY3NjczYzZhMjE1ZGVlMDMKHwi8pbDf0M1OEIWe7rAGGMeQHyAMMJT-wq4GOAJA8QcaAmhsIiAyOTNkMWE5YjQ0YzgxYzFiODQ5NWZkYjM2N2Y5NmYyNA; ssid_ucp_v1=1.0.0-KGYxMDA2Y2EyODRhODBhMzJhMDRmZTFlMGY3NjczYzZhMjE1ZGVlMDMKHwi8pbDf0M1OEIWe7rAGGMeQHyAMMJT-wq4GOAJA8QcaAmhsIiAyOTNkMWE5YjQ0YzgxYzFiODQ5NWZkYjM2N2Y5NmYyNA; store-region=cn-he; store-region-src=uid; ttwid=1%7CjrjSa0s1eDrywwvYWe9VSmlcXVCxT4YEC3rM3XP8D54%7C1713425512%7Cc5c4e4bf7ff35588ed81ff1cf43ca470dfdf8ef5321899915a4722fde06795c7; msToken=_CGgYuQG96ieyHEPLQzDKCnKuQAqwYChQfHKm1hjFHtiaMonWF_oL0TXth0d9IziI-C8F5BMN242V5TJWz_TJPC6ALVMBQWIDiEFUCN1AeCX1HfeiXMg89UzvzDHXJw=' \
          -H 'pragma: no-cache' \
          -H 'referer: https://www.coze.cn/work_flow?space_id={space_id}&workflow_id={workflow_id}' \
          -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
          -H 'x-requested-with: XMLHttpRequest'
        """
        self.workflow_ids={
            "audio2text":'7359040105006432297',
            "text2audio":'7366995190168567817',
            "ocr2text":'7359113794779414580',
            "ocr2audio":'7367193211657256970',
            "chat2text":'7367200930023899175',
            "chat2audio":'7367198938547666954'
        }

    def proc(self, workflow, input):
        print(f"{workflow}:{input}")
        space_id = '7336569388331499520'
        workflow_id = self.workflow_ids.get(workflow)
        cmd1 = self.cmd_run.format(space_id=space_id, workflow_id=workflow_id, input=input)
        lines = os.popen(cmd1).readlines()
        res0 = json.loads("".join(lines))
        print(res0)
        execute_id = res0.get("data").get("execute_id")
        executeStatus = 0
        cmd2 = self.cmd_get.format(space_id=space_id, workflow_id=workflow_id, execute_id=execute_id)
        while executeStatus < 2:
            lines = os.popen(cmd2.replace("#execute_id#", execute_id)).readlines()
            res = json.loads("".join(lines))
            executeStatus = res.get("data").get("executeStatus")
            time.sleep(1)
        nodeResults = res.get("data").get("nodeResults")
        for item in nodeResults:
            if item.get("NodeType") == "End":
                return item.get("output")
        return {"result": ""}

if __name__ == "__main__":
    worker = Worker()

    # res = worker.proc("text2audio","你好,给我讲一个故事")
    # print(res)
    # res = worker.proc("audio2text", "https://audio.nndou.com/static/test.wav")
    # print(res)
    # res = worker.proc("ocr2text", "https://audio.nndou.com/static/test.jpg")
    # print(res)
    # res = worker.proc("ocr2audio", "https://audio.nndou.com/static/test.jpg")
    # print(res)
    # res = worker.proc("chat2text","请帮我写一个python程序，打印hello world")
    # print(res)
    # res = worker.proc("chat2audio","帮我把这段英文添加标点后，翻译成通顺的中文内容: So I&#39;m a climate scientist, and based on that, I bet you think I&#39;m hereto tell you about all the ways that we&#39;re making the climate warmer. But I&#39;m not actuallygoing to do that today because I think you already knowthat part of the story. I want to tell you instead a storyabout unintended consequences. For many of us, it&#39;s really easy to forget that in addition to emittinga lot of greenhouse gases, humans have been addinga lot of particulate pollution to the atmosphere. These small particles,which we scientists call aerosols, are responsible for the death of betweenfour and 10 million people a year around the globe. For much of the world,this remains a major public health crisis. And because of that,there are significant efforts underway to clean up the source of these emissions, which is fantastic. But here&#39;s the thing. The unintended consequence of doing that is that we might actuallybe accelerating climate warming. And that&#39;s because mostof these aerosols actually cool climate. I spent my career as a climate scientist studying how aerosolsin the atmosphere around the globe absorb sunlight in the atmosphere and increase the reflection of sunlightaway from our planet. Aerosols directly scattersunlight back to space, and when they mix into clouds, they can make clouds brighteror more reflective. And both of these effectsact to cool the climate by reducing the amount of sunlightthat&#39;s available to heat the surface. We estimate that right now, aerosols from human activitiesare cooling climate by about half a degree Celsius. In other words, if it weren&#39;tfor these climate effects, we would already be experiencingsignificantly worse climate impacts than we already are. So here&#39;s a conundrum. As we clean up the air for human health, we&#39;re reducing the concentrationof these aerosols in the atmosphere, and we&#39;re removing the sourceof climate cooling. And because these aerosols only lastin the atmosphere for about a week, their cooling effect goes awayalmost immediately after we stop emitting them. Unlike greenhouse gases, which continue to warmfor decades to centuries. Here&#39;s a second conundrum. While our best estimateis that aerosols are cooling climate by about half a degree Celsius, this effect could be quite a bit smaller, or it could be a lot bigger. It&#39;s possible that aerosolsright now are cooling climate by up to almost a full degree Celsius. And because we don&#39;t know how much of a cooling effectthese aerosols are currently providing, we don&#39;t know how much of a climatewarming they&#39;re going to unmask as we clean up the air. So let&#39;s step backand talk a little bit more about how it is that aerosols cool climate and why these effects are so uncertain. So aerosols mostly cool climate by increasing the reflectionof sunlight from clouds. This increase in cloudbrightness from aerosols is not generally very visibly apparent because clouds are just so naturallyvariable in their brightness. But a case whereit is really visually obvious is in what we call ship tracks. So what you&#39;re looking at hereis a satellite image off the west coast of North America. And you can see that there arethese lines of clouds that are brighter or more reflectivethan the clouds around them. So to understand what&#39;s going on here, you first have to know that cloud dropletsalways form on an aerosol. Out over the ocean, there&#39;s justnot generally that many aerosols in the atmosphere. So what you end up with is a cloud with a small numberof larger droplets. Well, along comes your ship, and it&#39;s adding aerosols to the atmosphere and to the clouds. The water gets distributedover those aerosols, and you now have a cloudwith a large number of smaller droplets. This change in droplet sizeincreases the reflectivity of the cloud. Now this is not just happening where shipemissions are mixing into clouds. This is actually mostly happeningover broad regions of the planet where pollution aerosols mix into clouds. So I&#39;ve shown you herea very striking example of where pollution aerosolsare clearly making clouds more reflective. But this actually doesn&#39;t always happen. And why is that? Well, I&#39;m going to give youscientists&#39; two very favorite answers. It’s complicated. And it depends. (Laughter) If you have ever lookedat clouds for very long, you could see that they’reincredibly complex, and they are constantly evolving. When you add aerosols to clouds, it doesn&#39;t just change their droplet size, it actually can then changehow they evolve in ways that also affect cloud brightness. Depending on the detailsof the atmospheric conditions, clouds can be made either more or lessreflective with the addition of aerosols, or not really changed at all. But what we do knowis that under the right conditions, aerosol additions to cloudscan make them quite a bit brighter. So this poses an interesting question. Might it be possibleto rapidly reduce climate warming by mimicking this effect that pollution aerosolsare already having on clouds, but do so by adding natural aerosolsrather than pollution to clouds? Specifically by adding sea salt aerosolto clouds over the ocean, where sea salt aerosols already actas seeds for cloud droplet formation. Well we start with studyingthis problem using computer models. And when we add tiny sea saltaerosols to the clouds over the ocean in global climate models, we find that brightening just a fractionof the clouds over the ocean does, in fact, rapidly and significantlyreduce climate warming from greenhouse gases. So these models indicate it is possible. But here&#39;s the problem. These global-scale models used to study the climate impactsof marine cloud brightening, lack the ability to resolveall of these detailed interactions between aerosols and clouds. So they can&#39;t tell us how muchcloud brightening is possible or where. For that problem, we have to turn to models that covermuch more localized areas of the globe but that include many, many moredetails about aerosols, clouds and how they interact. So what we really needis better real-world data that we can use to testand inform these models that we use to studymarine cloud brightening. Now with this problem,as with many problems in the world, the devil is in the details. Many of the most uncertain aspects of the potential for marinecloud brightening have to do with how reallysmall-scale air motions in clouds, we&#39;re talking over likea few square kilometers, respond to the addition of aerosols. So being able to systematically studyhow clouds respond to aerosols, just like a single plume of aerosols, over a small area of clouds, could go a long way to improvingthese climate models. And I want to tell you todayabout a powerful approach that our team is developingto do just that. So based on what I just said, you probably won&#39;t be surprised to learn that that approach is to adda single plume of sea salt aerosols to a small area of clouds over the ocean and see how those clouds respond. Basically, to make a singleclean ship track. Now, the observationsfor studies like this would look a lot like thosewe&#39;ve been doing for decades to study how pollution aerosolsare already affecting clouds. Research aircraft filledwith specialized instruments can be used to measure in great detailthe atmospheric conditions the aerosols, the clouds and how they all vary. The difference between whatwe&#39;ve done here in the past and what we would do with these newcontrolled aerosol studies, is that we would be ableto actually compare clouds that have differentaerosol concentrations but that are otherwise the same. This would allow us to quantifywhere changes in cloud reflectivity are actually being caused by the aerosols, rather than just varyingdue to other factors. Now it turns out that generatingthe sea salt aerosol plume with the right characteristicsfor doing these controlled aerosol studies is a significant technological challenge. The aerosols need to be just right. To date, no one has demonstratedthe ability to generate both the size and quantity of aerosolsyou would need to do these studies where you would consistentlyand appreciably brighten marine clouds. As a climate scientisttrying to better understand how aerosols affect clouds and climate, I am really thrilled to be part of a team that is developing a new instrumentto meet that challenge. Our new cloud aerosol research instrumentis specifically designed to generate a very large numberof very, very tiny sea salt aerosols. These aerosols are about 1,000thof the width of a human hair, because that&#39;s the size that&#39;s idealfor marine cloud brightening. I&#39;m also really excitedto be able to tell you that we&#39;ve just started our firstscientific studies with this instrument. This happened just two weeks ago. We&#39;ve set up our new Coastal AtmosphericAerosol Research and Engagement Facility on the flight deck of the USS HornetSea, Air and Space Museum in Alameda, California. So on the Hornet, we are making observationsat multiple locations along the flight deck of the sea salt aerosol plume that is being generatedwith our new instrument. These measurements are going to allowus to study how the aerosol evolves as it&#39;s transported towards clouds. It&#39;s also letting us study whetheror not this instrument is delivering the right aerosol,with the right characteristics for use in later studies at sea, of the single plume experimentand how clouds respond. We&#39;ve set up this studyspecifically at a museum to make it easily accessibleto the public, educators and other researchers. And we consider this level of openness to be a really importantpart of our program. And that&#39;s because we&#39;re hoping that the work at the CAAREresearch facility can be the start of broader internationalengagement in this research, particularly by our colleaguesin historically marginalized communities who are the most vulnerableto climate change. Their direct engagement in this researchis absolutely critical to having equitableand informed discussions about whether we ever would usemarine cloud brightening to cool climate as a way of addressing climate risks. Now don’t get me wrong, marine cloud brightening will not reversethe effects of greenhouse gases. This is not a solutionto the climate crisis. I really have to repeat that. This is not a solutionto the climate crisis. However, marine cloud brighteningmight be a way of treating the main symptom of the problem, which is too much heatin the atmosphere and ocean. We believe that the world needsthe best information possible to decide whether approacheslike marine cloud brightening might be a componentof how we chart a safer course into a future that now includes a rapidlyand dangerously warming climate. We also believe it&#39;s really critical that we better understandthe evolving role of aerosols in climate change and the climate system if we don&#39;t want to be flying blind into the coming couple decadesof climate change. I hope that I&#39;ve left youas excited as I am about these new capabilitieswe&#39;re developing to study these really important questions. And I invite you all to come join usat our new CAARE research facility. Thank you. (Applause)")
    # print(res)
    res = worker.proc("chat2text","请给这段话加上合适的标点：bonjour adrian lombard here welcome or welcome back on my channel today i want to talk to you about a major cg concept the game changing usd [Music] if you expect me to talk about the american&#39;s currency value you won the wrong video sorry by usd i mean universal scene description the technology that pixar created and that is now being implemented in all your favorite apps i created a simple scene thanks to usd and houdini solaris but before breaking it down and getting into the nitty-gritty of solaris i thought it would be helpful to bring some clarification about this method and maybe help you find out why you would even need to care about having usd in your 3d software as i was saying usd stands for universal scene description it is completely open source and we have to thank pixar for that they created it for the need of their amazing productions and actively worked on it since 2010 on the movie brave they extensively tested it as part of their pipeline until the release of the source code in 2016. because all the departments doesn&#39;t necessarily use the same software between layout animation lighting effects their idea was to open the collaboration between department by having some sort of format that would help them representing the final scene into any of their application it&#39;s been often reduced as a file format just like alambic it may seems like one but don&#39;t fool yourself it is much more than that usd more than a format it&#39;s a way of life thanks to what we call a stage you basically get a single place where you can describe the entire scene into one file that you can then easily export and consistently reuse in another software you can see that as the everything everywhere all at once of cg across the multiverse i&#39;ve seen thousands of evelyn&#39;s i&#39;m here because we need your help very busy today so time to help you if you haven&#39;t seen this movie check it out it&#39;s amazing the fact that so many applications like houdini unreal omniverse and now autodesk products and many more adopt this system can allow for a common language to package assemble light all your different scenes you can then share them not only between software but between studios because as you may know not only one studio is involved on the movie like adventures okay but 20 of what&#39;s called a vendor can be involved you usually have the main vendor who are in charge of establishing the look of some hero assets or shots and then some sequence can be hand off to third parties to help the need of such a big production and the thing with all the studios is that they can work in very different ways because there are so many options between cg package rendering engines not even mentioning proprietary tool here but just that can cause a whole lot of issues when exchanging data between companies so when you receive something from a main vendor it can imply redoing some aspect of the work that have already been done just to fit the need of your pipeline in your studio an example like rocket raccoon in guardian of the galaxy 2 mostly because it&#39;s so cute since the very first movie frame store has been the main vendor when it comes to the creation of roquette raccoon but for the second movie they need needed solid backup so on one hand there was weta for their work on the third act and on the other hand trickster also helped a lot on a few sequences they all worked hard to make sure the look of this character is consistent even though their approach to groom animation material and lighting can be really different and that&#39;s just a small example among so many other things imagine how easier it would be instead of sharing a crazy package of textures materials geometry instead of that you share a package of well just usd files since we talk about usd files we have quite a few options in terms of the extension dot usd would be a compressed binary representation of your usd so very light and fast to save but if you try to edit this thing with a text editor it&#39;s just a series of one and zeros usda on the other hand is the uncompressed version the ascii version if you are a bit saving scripting you can edit information of your usd with script editor those two are very similar to maya where you have a mb maya binary and ma a maya ascii version of your scene usdz would be like an archive containing multiple usd textures and data related to your scene the advantage is you don&#39;t actually need to unpack it to read it it&#39;s totally usable as it is for augmented reality on phone or other device so all of this should help make data sharing between industries much more streamlined and even internally within a studio that&#39;s the kind of thing that has been giving headaches to the biggest vfx and animation companies how do you share that&#39;s a huge environment scene with other departments like animation or fx how do we all collaborate effectively without wasting time a strong pipeline effort has been the key for that some companies coming up with better ways than others [Music] in those days where expectations are higher while deadlines are getting shorter i am not surprised that most big studios are transitioning toward an usd pipeline more than ever we need to communicate and collaborate more efficiently if we want to achieve better visuals usd naturally comes with its own concept and therefore its own lingo in that way it should help making the communication between studios and industries much more universal things like what&#39;s a primitive a payload an opinion that&#39;s the vocabulary that i will try to clarify as we go along with a little tutorial series about environment making as i mentioned usd is open source and you can download the source code on github if you are a technical person and wish to bring your contribution to the code you have all the instructions here to get this running and ready to edit adding all the links in description if you are interested to have a look also pixar worked on the asset scene visualizer called usd viewer so super handy if you need to check out the look of an asset or a scene real quick and you can even integrate a render actually in there like side effects in version 19 of houdini has been working to integrate their own karma engine talking about side effects they have been one of the first developers to actually embrace usd and add a feature to houdini called solaris they released the first version in version 18 back in 2019 it&#39;s been more than three years they work on it now and they reached a point in version 19 where things are much more production ready with a lot more tools to support usd scene creation like physical layout interaction various brush to manipulate asset and instancing and on top of that they upgraded their new engine karma to a much more reduced version that can take advantage of gpu power of course you&#39;re not forced to use karma you can totally use any engine that has been integrated in solaris such as renderman redshift arnold v-ray it seems like renderman is going to be the one commonly adopted by big studios i guess it makes sense with the history of blockbuster productions not only movie companies but also the real time industries turning toward usd because you have now unreal 5 that is supporting this format and nvidia actually have been working on their own real-time ray tracer called omniverse that fully works with usd the advantage with this software is it enables collaboration with other usd apps with a live bridge so whether you are working from 3ds max maya houdini you should be able to link those together most likely something i would want to start testing at some point that soon super promising [Music] so sure big studio companies are the one that can benefit from usd but at the same time there are so many cool advantages to usd like fast export times saving memory space while having complex scene with crazy amount of instances procedural material assignments and layering system are to me some of the key selling points of this approach and this is the kind of thing that can help pushing smaller companies to a much more organized and collaborative space one good example is the work developed at ingenuity studio they have been working with solaris and usd for a few years now they then managed to take advantage of it for music video and tv projects the type of project that actually required a fast-paced production i invite you to check out grand miller&#39;s talk about world building at craft 2021 with side effects he talks about their experience with usd pipeline and solar is and that&#39;s definitely an eye opening conversation [Music] so yeah solar is pretty amazing stuff if you ask me so thanks sidefx for that and we&#39;ll start this tutorial series by having a look at converting some mega scan assets into usd with material x shaders and all the good stuff so we can create a small library for us to play with and finally create a simple environment scene and that&#39;s it for today thank you so much for watching please take care and i&#39;ll see you guys next time [Music] foreign")
    print(res)
